import request from '@/config/axios'

// 获取用户列表数据
export const getUserListApi = (params: any) => {
    return request.get({ url: '/api/system/user/list', params })
}
// 修改用户信息
export const editUserApi = (params: any) => {
    return request.put({ url: '/api/system/user', data: params })
}
// 修改用户信息status
export const changeUserApi = (params: any) => {
    return request.put({ url: '/api/system/user/changeStatus', data: params })
}
// 新增用户信息
export const addUserApi = (params: any) => {
    return request.post({ url: '/api/system/user', data: params })
}
// 删除用户
export const deteleUserApi = (id:any) => {
    return request.delete({ url: `/api/system/user/${id}`})
  }
//   获取详情
export const getUserInfoApi = (params: any) => {
    return request.get({ url: '/api/system/user/'+params })
}